/*
 *
 */
package org.jiscinvolve.astrodabis.barberry.common.core;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.junit.Test;
import org.junit.After;
import org.junit.Before;
import static org.junit.Assert.*;

import org.springframework.beans.factory.annotation.Autowired;  

import org.jiscinvolve.astrodabis.barberry.common.core.exception.*;

import org.jasypt.util.password.PasswordEncryptor;
import org.jasypt.util.password.BasicPasswordEncryptor ;

/*
 *
 */
public class PasswordTestCase
extends CoreTestBase
    {

    @Test
    public void checkCrypted()
        {
        
        PasswordEncryptor cryptor = new BasicPasswordEncryptor();
        String before = this.getClass().getName() ;
        String one = cryptor.encryptPassword(before);
        String two = cryptor.encryptPassword(before);
        log.debug("Crypt [" + before + "] >> [" + one + "]");
        log.debug("Crypt [" + before + "] >> [" + two + "]");
        }    

    }
